// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ETSDAOException.java

package com.sunwayhorizo.health.ets.exceptions.common;

import com.sunwayhorizo.health.hl7.common.VersionInfo;

public final class ETSDAOException extends Exception
{

    public static final String RCS_ID = "$Header: ETSDAOException.java 115.9 2005/02/01 20:40:09 gkuhnen noship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: ETSDAOException.java 115.9 2005/02/01 20:40:09 gkuhnen noship $", "oracle.apps.hct.exceptions.common.ETSDAOException");
    private Throwable m_WrappedException;

    public ETSDAOException()
    {
    }

    public ETSDAOException(String s)
    {
        super(s);
    }

    public ETSDAOException(String s, Throwable throwable)
    {
        super(s);
        m_WrappedException = throwable;
        m_WrappedException.getMessage();
    }

    public Throwable getException()
    {
        return m_WrappedException;
    }

    public String toString()
    {
        if(m_WrappedException != null)
            return super.toString() + "\nWrapped exception: " + m_WrappedException;
        else
            return super.toString();
    }

    public String getMessage()
    {
        return super.getMessage();
    }

}
